import router from '@/router';
import { reactive } from 'vue';

export default function importConfigFunction(param: any) {
  const staem = param.data;
  const base = reactive<any>({
    valueMap: {},
  });
  const init = () => {
    base.valueMap = staem;
  };
  /**
   * @exports routerGo 路由跳转方案
   */
  const routerGo = () => {
    router.push(base.valueMap.name);
  };
  return {
    base,
    init,
    routerGo,
  };
}
